package com.dib.neo.bkfs.fs;

import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.attribute.FileAttributeView;
import java.nio.file.attribute.FileStoreAttributeView;

public class BKFileStore extends FileStore {

  final BKFileSystem bkfs;

  public BKFileStore(BKFileSystem bkfs) {
    this.bkfs = bkfs;
  }

  @Override
  public String name() {
    return bkfs.toString() + "/";
  }

  @Override
  public String type() {
    return "bkfs";
  }

  @Override
  public boolean isReadOnly() {
    return bkfs.isReadOnly();
  }

  @Override
  public long getTotalSpace() throws IOException {
    return 0;
  }

  @Override
  public long getUsableSpace() throws IOException {
    return 0;
  }

  @Override
  public long getUnallocatedSpace() throws IOException {
    return 0;
  }

  @Override
  public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type) {
    return false;
  }

  @Override
  public boolean supportsFileAttributeView(String name) {
    return false;
  }

  @Override
  public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type) {
    return null;
  }

  @Override
  public Object getAttribute(String attribute) throws IOException {
    return null;
  }
}
